-- GENERATED SPELL FOR [Rhunok] --


function spell0_28416(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(34298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28416', 556, 1)
end

function spell1_28416(pUnit, Event) --@Roar of Rhunok,Self--
pUnit:FullCastSpellOnTarget(57861,pUnit)
pUnit:RegisterEvent('Sorts_28416', 30293, 1)
end

function Sorts_28416(pUnit, Event)
local choix_sorts_28416 = math.random(0, 1)
if choix_sorts_28416 == 0 then
pUnit:RegisterEvent('spell0_28416', 1, 1)
end
if choix_sorts_28416 == 1 then
pUnit:RegisterEvent('spell1_28416', 1, 1)
end
end

function mob28416_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28416', math.random(1500, 3000), 1)
end

function mob28416_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28416_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28416_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28416, 1, 'mob28416_Action')
RegisterUnitEvent(28416, 2, 'mob28416_Leave')
RegisterUnitEvent(28416, 3, 'mob28416_Kill')
RegisterUnitEvent(28416, 4, 'mob28416_Die')
